package ru.paswd.marketprice.data.mappers

import ru.paswd.marketprice.api.dto.Product

object ProductMapper {
    fun fromDto(product: Product) = ru.paswd.marketprice.data.models.Product(
        product.id,
        product.name,
        product.imageSrc,
        ProductCategoryMapper.fromDto(product.category),
        product.priceMin,
        product.priceMax
    )
}